package com.educate.serviceedu.client;

import com.educate.educenter.entity.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(name="service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {

    @GetMapping("/educenter/comment/getInfoUc/{id}")
    //根据用户id获取用户信息
    public UcenterMember getInfo(@PathVariable String id);

}
